<?php
/**
 *  In/Index.php
 *
 *  @author     Luvina
 *  @package    Smscom
 *  @version
 */

/**
 *  in_indexビューの実装
 *
 *  @author     Luvina
 *  @access     public
 *  @package    Smscom
 */
class MyApp_View_InIndex extends MyApp_ViewClass {
    /**
     *  preforward function
     *
     *  @access public
     */
    function preforward() {
        $product_type = $this->af->get("product_type");
        $product_category_mng = $this->backend->getManager("ProductCategory");
        $list_cate = $product_category_mng->getDbAttrList("product_category_name");
        $product_type_name = $list_cate[$product_type]["name"] ? $list_cate[$product_type]["name"]: $list_cate[1]["name"];
        $this->_setPageTitle('Nhập hàng - '. $product_type_name);
        $this->layout = 'layouts/default.tpl';
    }
}
?>
